package cn.stylefeng.guns.modular.statistic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.statistic.entity.MonthStatistic;
import cn.stylefeng.guns.modular.statistic.model.params.MonthStatisticParam;
import cn.stylefeng.guns.modular.statistic.model.result.MonthStatisticResult;
import cn.stylefeng.guns.modular.statistic.model.result.StatisticResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuqiang
 * @since 2020-02-21
 */
public interface MonthStatisticService extends IService<MonthStatistic> {

    /**
     * 新增
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
    void add(MonthStatisticParam param);

    /**
     * 删除
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
    void delete(MonthStatisticParam param);

    /**
     * 更新
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
    void update(MonthStatisticParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
    MonthStatisticResult findBySpec(MonthStatisticParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
    List<MonthStatisticResult> findListBySpec(MonthStatisticParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
     LayuiPageInfo findPageBySpec(MonthStatisticParam param);

     List<StatisticResult> statisticsMonth(MonthStatisticParam param);

    MonthStatisticResult findByMonth(int month);
}
